home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_kdelibs.idb / usr / freeware / kde / include / kbutton.h.z / kbutton.h
Encoding:
C/C++ Source or Header  |  1999-01-26  |  1.5 KB  |  51 lines

  1. /* This file is part of the KDE libraries
  2.     Copyright (C) 1997 Torben Weis (weis@kde.org)
  3.               (C) 1997 Matthias Ettrich (ettrich@kde.org)
  4.  
  5.     This library is free software; you can redistribute it and/or
  6.     modify it under the terms of the GNU Library General Public
  7.     License as published by the Free Software Foundation; either
  8.     version 2 of the License, or (at your option) any later version.
  9.  
  10.     This library is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.     Library General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU Library General Public License
  16.     along with this library; see the file COPYING.LIB.  If not, write to
  17.     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.     Boston, MA 02111-1307, USA.
  19. */
  20. #ifndef KBUTTON_H
  21. #define KBUTTON_H
  22.  
  23. #include <qpixmap.h>
  24. #include <qbutton.h>
  25.  
  26. /**
  27. * Provides active-raise/lower buttons.
  28. * @version $Id: kbutton.h,v 1.8 1997/10/16 11:15:14 torben Exp $
  29. */
  30. class KButton : public QButton
  31. {
  32.     Q_OBJECT
  33. public:
  34.     KButton( QWidget *_parent = 0L, const char *name = 0L );
  35.     ~KButton();
  36.  
  37. protected:
  38.     virtual void leaveEvent( QEvent *_ev );
  39.     virtual void enterEvent( QEvent *_ev );
  40.         
  41.     virtual void drawButton( QPainter *_painter );
  42.     virtual void drawButtonLabel( QPainter *_painter );
  43.  
  44.     void paint( QPainter *_painter );
  45.  
  46.  private:    
  47.     bool raised;    
  48. };
  49.  
  50. #endif
  51.